import CommonApi from '@/api/CommonApi'
import request from '@/utils/request'

class BaseBomMng extends CommonApi {
  getBomDetailData(bomId, replaceIdFlag) {
    return request({
      url: this.prefixurl + '/getBomDetailData',
      method: 'get',
      params: {
        bomId,
        replaceIdFlag
      }
    })
  }
  getBomInfoByItemId(itemId) {
    return request({
      url: this.prefixurl + '/getBomInfoByItemId',
      method: 'get',
      params: {
        itemId
      }
    })
  }
}

export default new BaseBomMng('base-service/api/baseBomMng')
